package com.dao;

import com.entity.Books;

import java.util.List;
import java.util.Map;

public interface BooksMapper {
    public List<Map> getAll(Books books);

    public void addBook(Books books);

    public void delBook(int bid);

    public Books getById(int id);

    public void modBook(Books books);

    /**
     * 找到新添加的图书的id
     * 入口：无
     * 出口：int id
     * */
    public Integer getNewBook();

    //根据bookid  获取图书信息
    public Books getByBookId(Integer bookid);

}